package day14.tarena.homeword;
import java.util.*;
public class TreeProduct {

	public static void main(String[] args) {
		TreeSet<Product> ts = new TreeSet<Product>();  //相当于自然排序
		Product p1 =  new Product("1","egg","UK",5.4 );
		ts.add(p1);
		Product p2 =  new Product("3","break","USA",60.4 );
		ts.add(p2);
		Product p3 =  new Product("2","apple","CN",10 );
		ts.add(p3);
		Product p4 =  new Product("4","lemo","HK",8.4 );
		ts.add(p4);
		
		

		System.out.println(ts);
	}

}
